<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>团购订单</title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="format-detection" content="address=no">
		<link rel="stylesheet" type="text/css" href="css/common.css">
		<link rel="stylesheet" type="text/css" href="css/index.css">
		<link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
		<link rel="stylesheet" href="css/reset.css">
		<script src="js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/iscroll.js"></script>
		<script type="text/javascript" src="js/jquery.flexslider-min.js"></script>
		<script src="js/hmt.js" type="text/javascript"></script>
		<script type="text/javascript" src="js/index.js"></script>
		<script src="js/swiper.min.js" type="text/javascript" ></script>
		
		
		<script type="text/javascript" src="http://yanyubao.tseo.cn/Tpl/static/jquery.tmpl.js"></script>
		<script type="text/javascript" src="js/abot.js"></script>
		<script type="text/javascript" src="http://yanyubao.tseo.cn/api/shopapp.js"></script>
		<script type="text/javascript" src="js/abot.function.js"></script>
		
	</head>
	<body>
		<header class="hasManyCity hasManyCitytwo" id="header">
			<a href="javascript:history.go(-1)" class="fl fanhui">
			<i class="iconfont">&#xe6d4;</i></a>
			<div class="header-tit">
				团购订单
			</div>		
		</header>
		
		<div id="container">		
			<div id="main">
				<div class="notice">
					<div class="tab-hd tab-hdtwo">
						<ul class="tab-nav">
						  <li>全部</li>
						  <li>待付款</li>
						  <li>待使用</li>
						  <li>待评价</li>
						  <li>退款/售后</li>
						</ul>
					</div>
					<div class="tab-bd">
						<div class="tab-pal" id="order_list">
						<script id="order_product" type="text/x-jquery-tmpl">
							<dl class="list listtwo list-in">						
								<dd>
									<div class="orderbh clearfloat box-s">
										订单编号<span>${orderno}</span>
										<span class="zhuangtai" style="color:lime;margin-left:70px;">${status2}</span>
									</div>
										{{each orderProduct}}
									<a href="#" class="react">
										<div class="dealcard dealcardtwo clearfloat">
											<div class="dealcard-img imgbox">
												<img src="${picture}">
											</div>
											<div class="dealcard-block-right dealcard-block-righttwo">
												<div class="dealcard-brand dealcard-brandtwo single-line">
													<span class="poi-name icon-count-3">${product_name}</span>
												</div>
												<div class="price pricetwo">
													<span class="address">数量：${amount}</span>									
												</div>	
												<div class="price pricetwo">
													<span class="address">总价：</span>
													<span class="strong">${pay_price}</span>
												</div>										
											</div>
										</div>
									</a>
									{{/each}}
									
								</dd>

							</dl>
						</div>
						</script>
					
					</div>
				</div>								
			</div>
		</div>
		<!--footer star-->
	    <footer id="footer">
			<div>
				<a href="index.html">
					<div class="icon i-1"></div>
					<p>首页</p>
				</a>
			</div>
			<div>
				<a href="#">
					<div class="icon i-5"></div>
					<p>附近</p>
				</a>
			</div>
			<div>
				<a href="rush.html">
					<div class="icon i-2"></div>
					<p>抢购</p>
				</a>
			</div>
			<div>
				<a href="#">
					<div class="icon i-3"></div>
					<p>关注</p>
				</a>
			</div>
			<div>
				<a href="center.html">
					<div class="icon i-4 on"></div>
					<p>我的</p>
				</a>
			</div>			
		</footer>
		<!--footer end-->
	</body>
	<script src="js/jquery.SuperSlide.2.1.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		jQuery(".notice").slide({ titCell:".tab-hd li", mainCell:".tab-bd",delayTime:0 });
	</script>
	
	
<script type="text/javascript">

function order_list_callback(res){
	console.log(1111111111111)
	console.log(res)
	
	$("#order_product").tmpl(res.orderList).appendTo('#order_list');
	
}

$(function(){
	//判断用户是否登录
	if(!is_user_login()){
		
		location.href = 'login.html';
		
		return;
		
	}
	var function_name = "order_index";
	
	var loginItem = get_login_info();//获取用户信息
	
	var userid = loginItem.userid;
	
	var checkstr = loginItem.checkstr;
	
	var page = '1';
	
	var request_data = {'userid':userid,'checkstr':checkstr,page:page}
	
	ajax_request_server(function_name,request_data,order_list_callback);
	
});
</script>	
	
	
	
	
	
</html>
